﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using Jbe.TestSuite.Infrastructure.Interface;
using Jbe.Composite.Extensions;

namespace Jbe.TestSuite.Infrastructure.Shell.Presentation
{
    internal class MessageService : IMessageService
    {
        public void ShowInformation(string message, object details)
        {
            MessageBox.Show(message + "\n\n" + details.ToString(), ApplicationInfo.ProductName, MessageBoxButton.OK, MessageBoxImage.Information);
        }

        public void ShowWarning(string message, object details)
        {
            MessageBox.Show(message + "\n\n" + details.ToString(), ApplicationInfo.ProductName, MessageBoxButton.OK, MessageBoxImage.Warning);
        }

        public void ShowError(string message, object details)
        {
            MessageBox.Show(message + "\n\n" + details.ToString(), ApplicationInfo.ProductName, MessageBoxButton.OK, MessageBoxImage.Error);
        }
    }
}
